import request from "@/utils/request";

const baseURL = "/train/checkout-order";

export const getMyPerformanceDetailPage = (data: MyCheckoutOrderDetailReqVO) =>
  request<Res<PageResult<MyCheckoutOrderDetailRespVO>>>({
    url: `${baseURL}/page-my-performance-detail`,
    method: "POST",
    data,
  });

export const getMySummary = () =>
  request<Res<MyCheckoutOrderSummaryRespVO>>({
    url: `${baseURL}/get-my-summary`,
    method: "GET",
  });
